<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2011-1-25
 * Time: 18:53:39
 * To change this template use File | Settings | File Templates.
 */
 
class adminBase extends sfActions
{
      public function execute($request)
      {
          if($this->getUser()->getAttribute("adminUserName") == null || ($this->getUser()->getAttribute("adminUserName") != null && $this->getUser()->getAttribute("adminUserName") != "admin"))
          {
              $this->redirect("system/login");
          }
          else
              parent::execute($request);
      }
}
